import 'package:flutter/material.dart';
import 'package:sil_base_widget_package/sil_base_widget_package.dart';

import '../../../utils/color/ColorUtils.dart';

class LongBtn extends StatelessWidget {
  final String? title;
  final double height;
  final double radius;
  final Color? bgColor;
  final void Function()? onTapFunc;
  final EdgeInsetsGeometry? margin;
  const LongBtn(
      {this.title, this.height = 40, this.radius = 6, this.bgColor,this.onTapFunc,this.margin, Key? key})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SilButton(
      margin: this.margin,
      onTapFunc: this.onTapFunc,
      useConstrained: true,
      title: title,
      titleColor: ColorUtils.color_font_main,
      fontSize: 16.sp,
      radius: this.radius.w,
      height: this.height.w,
      backgroundColor: this.bgColor ?? ColorUtils.color_theme,
    );
  }
}
